{extend name="../../admin/view/main"}


{block name="content"}
<div class="layui-tab layui-tab-card">
    <div class="layui-tab-content">
        {include file='activity/activity/order_search'}
        <table class="layui-table margin-top-10" lay-skin="line">
            {notempty name='list'}
            <thead>
            <tr>
                <th class='nowrap'>ID</th>
                <th class='nowrap'>编号</th>
                <th class='nowrap'>活动</th>
                <th class='nowrap'>报名人</th>
                <th class='nowrap'>报名姓名</th>
                <th class='nowrap'>报名邮箱</th>
                <th class='nowrap'>报名手机</th>
                <th class='nowrap'>票券</th>
                <th class='nowrap'>订单价格</th>
                <th class='nowrap'>状态</th>
                <th class='nowrap'>报名表</th>
                <th class='nowrap'>创建时间</th>
            </tr>
            </thead>
            {/notempty}
            <tbody>
            {foreach $list as $key=>$vo}
            <tr>
                <td>{$vo.id}</td>
                <td>
                    <span>{$vo.sn}</span>
                </td>
                <td class="nowrap">
                    <span>{$vo.activityModel.name}</span>
                </td>
                <td class="nowrap">{$vo.user.name|default='0'}</td>
                <td class="nowrap">{$vo.name|default='0'}</td>
                <td class="nowrap">{$vo.email|default='0'}</td>
                <td class="nowrap">{$vo.phone|default='0'}</td>
                <td class="nowrap">{$vo.ticket_name|default='0'}</td>
                <td class="nowrap">{$vo.price|default='0'}</td>
                <td class="nowrap">{$vo.status_name|default='0'}</td>
                <td class="nowrap">
                    {if count($vo.diy_data)} 
                        {volist name="vo.diy_data" id="diy"} 
                            <p>{$key} : {$diy}</p>
                        {/volist}
                    {/if}
                
                </td>
                <td class="nowrap">{$vo.create_time}</td>
            </tr>
            {/foreach}
            </tbody>
        </table>
        {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
    </div>
</div>
{/block}
